﻿/** \file
* \$Rev: 183 $
* 
* \$Date: 2010-04-14 00:34:38 +0000 (Wed, 14 Apr 2010) $
*
* \$URL: http://chorus-twitter.googlecode.com/svn/trunk/src/net/DMSource.cs $
*/

using System;
using System.Collections.Generic;
using chorus.twitter;

namespace chorus.net
{
	/// <summary>
	/// A source that fetches a collection of received direct messages.
	/// </summary>
	public class DMSource_Received : XmlMessageSource<direct_messages>
	{
		/// <summary>The pagination parameters.</summary>
		public readonly PagedParameters pageparms = new PagedParameters();

		/// <summary>The path part of the source URI.</summary>
		public override string UriPath { get { return base.UriPath + "/direct_messages"; } }

		/// <summary>The constructor.</summary>
		public DMSource_Received() { pageparms.Populate(qparams); }
	}

	/// <summary>
	/// A source that fetches a collection of sent direct messages.
	/// </summary>
	public class DMSource_Sent : DMSource_Received
	{
		/// <summary>The type part of the source URI.</summary>
		public override string UriType { get { return "sent"; } }
	}
}
